@(title: String,js_css:Html)(content: Html)

<!DOCTYPE html>

<html>
<head>
<title>@title</title>
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.united.css")">
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
<script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/bootstrap.min.js")" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/meng-util.js")" type="text/javascript"></script>
@js_css
</head>
<body>
	<div class="navbar navbar-default">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target=".navbar-responsive-collapse">
				<span class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">用户中心</a>
		</div>
		<div class="navbar-collapse collapse navbar-responsive-collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="/">个人首页</a></li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">账户设置 <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="/mysafe">安全设置</a></li>
						<li><a href="/myprofile">个人资料</a></li>
					</ul></li>
				<li><a href="/mymsg">消息</a></li>
			</ul>
			@if(session().get("username") == null || session().get("username") == ""){
			<!-- <form class="navbar-form navbar-right" method="post" action="/login">
				<div class="form-group">
					<input type="text" class="form-control" name="username" placeholder="用户名">
					<input type="text" class="form-control" name="password" placeholder="密码">
				</div>
				<button type="submit" class="btn btn-warning">登录</button>
				<a class="btn btn-warning" href="/register">注册</a>
			</form> -->
			} else {
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						@greeting()	
						@session().get("username")
						<b class="caret"></b>
					</a>
					<ul class="dropdown-menu">
						<li><a href="/logout">退出</a></li>
					</ul>
				</li>
			  </ul>
			}
		</div>
	</div>
	<div class="container-fluid">
		<div class="row">@content</div>
	</div>
</body>
</html>
